
package net.atremmedia.gwt.actionjava.examples.advanced.samples;

import net.atremmedia.gwt.actionjava.examples.AJExample;
import net.atremmedia.gwt.actionjava.examples.advanced.samples.nodes.NodesMass;
import net.atremmedia.gwt.actionjava.examples.frame.AJExampleOverview;
import actionjava.events.tick.TickEvent;

public class AdvancedExample2 extends AJExample
{
	public static final String NAME = "AdvancedExample 2";
	public static final String DESCRIPTION = "Description";
	public static final String EXAMPLE_SRC = "https://code.google.com/p/gwt-actionjava/source/browse/trunk/aj-examples/aj-examples-advanced/src/main/java/net/atremmedia/gwt/actionjava/examples/advanced/samples/AdvancedExample2.java";

	private NodesMass nodesMass;

	public AdvancedExample2(AJExampleOverview base)
	{
		super(NAME, DESCRIPTION, EXAMPLE_SRC, base);
	}

	@Override
	public void run()
	{
		setBGColor("#000000");

		nodesMass = new NodesMass();
		addChild(nodesMass);
		nodesMass.start();
	}

	@Override
	public void onRenderTick(TickEvent event)
	{
		nodesMass.update();
	}
}
